package com.example.element.module.lifecycle.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.example.common.base.AbsActivity;
import com.example.common.utils.L;
import com.example.element.R;
import com.example.element.databinding.ActLifecycleAlphaBinding;

public class AlphaActivity extends AbsActivity<ActLifecycleAlphaBinding> {

    public static void open(Context context) {
        context.startActivity(new Intent(context, AlphaActivity.class));
    }

    @Override
    public void onSaveInstanceState(@NonNull Bundle outState, @NonNull PersistableBundle outPersistentState) {
        super.onSaveInstanceState(outState, outPersistentState);
        L.e(TAG, "onSaveInstanceState");
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        L.e(TAG, "onCreate");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        L.e(TAG, "onRestart");
    }

    @Override
    protected void onResume() {
        super.onResume();
        L.e(TAG, "onResume");
    }

    @Override
    protected void onStart() {
        super.onStart();
        L.e(TAG, "onStart");
    }

    @Override
    protected void onPause() {
        super.onPause();
        L.e(TAG, "onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        L.e(TAG, "onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        L.e(TAG, "onDestroy");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.act_lifecycle_alpha;
    }

    @Override
    protected void main() {

    }

    @Override
    protected void initListener() {

    }
}
